package com.sky.mapper;

import com.sky.anno.AutoFill;
import com.sky.entity.Dish;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;

import java.util.List;

public interface DishFlavorMapper {
    /**
     * 口味保存
     * @param flavors
     */
    void save(List<DishFlavor> flavors);

    /**
     * 根据菜品id删除口味
     * @param dishIds
     */
    void deleteByDishIds(List<Long> dishIds);

    /**
     * 根据菜品id查询口味
     * @param id
     * @return
     */
    List<DishFlavor> queryByDishId(Long id);
}
